﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NASM_Develop_IDE
{

    /// <summary>
    /// Helper Class For Lists
    /// </summary>
    static class ListHelper
    {
        public static bool CompareList<T>(List<T> x, List<T> y)
        {
            if (x.Count != y.Count)
            {
                return false;
            }
            else
            {
                for (int index = 0; index < x.Count; index++)
                {
                    if (typeof(T) == typeof(string))
                    {
                        if (x[index] as string != y[index] as string)
                        {
                            return false;
                        }
                    }
                }
                return true;
            }
        }
    }
}
